<!DOCTYPE html>
<html lang="zh">

<head>
  <meta charset="UTF-8">
  <meta name="viewport" content="width=device-width, initial-scale=1.0">
  <title>超链接伪类</title>
  <style>
    a {
      font-size: 32px;
    }

    a:link {
      /* 访问前 */
      color: #f00;
    }

    a:visited {
      /* 访问后 */
      color: #0f0;
    }

    a:hover {
      /* 悬停 */
      color: #00f;
    }

    a:active {
      /* 点击不松开 */
      color: #ff0;
    }
  </style>
</head>

<body>
  <a href="https://www.baidu.com">点我去百度</a>
</body>

</html>